package com.hy.erp.inventory.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery ;
import javax.persistence.Table;

import org.hibernate.annotations.Index;

import com.hy.erp.inventory.dao.interfaces.IIndustryDao;
import com.hy.erp.inventory.pojo.interfaces.IIndustry;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-6；时间：上午10:03:49</li>
 * <li>类型名称：Industry</li>
 * <li>设计目的：组织所属行业</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
/*@Name("industry")

@ DaoA ( IIndustryDao.class )
@ NamedQuery ( name = "findEducationByOrganisationId" , query = "select o.industry from Organisation o where o.identifier=?")
*/
@Entity
@Table(name="t_industry")
public class Industry extends MyBaseModel //implements IPositonType
//public class Industry extends AbstractPersistentEntity implements IIndustry

{

	/**
	 * <ul>
	 * <li>开发作者：李冰</li>
	 * <li>设计日期：2010-10-6；时间：上午10:04:30</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long	serialVersionUID	=
														- 2065446741259052175L ;
	



	public Industry (
						
						String name ,
						String description )
	{
		super ( ) ;
		
	
	}

	public Industry ( )
	{
		super ( ) ;
	}
	
	@ Column ( name = "name" , length = 50)
	@ Index ( name = "nameIndex" )
	public String getName ( )
	{

		return this.get(IIndustry.NAME) ;
	}

	public void setName (
							String name )
	{

		super.set (IIndustry.NAME , name );
	}
	@ Column ( name = "description" , length = 200)
	@ Index ( name = "descriptionIndex" )
	public String getDescription ( )
	{

		return this.get(IIndustry.DESCRIPTION) ;
	}

	public void setDescription (
String description )
	{
		super.set (IIndustry.DESCRIPTION , description );
	}
	
	
	
	

}
